cmake_minimum_required(VERSION 3.10)
project(plot3d)

find_library(libvar_glfw libglfw3.a)
if (${libvar_glfw} STREQUAL "libvar_glfw-NOTFOUND")
    message(FATAL_ERROR "required glfw library but not found!")
else()
    message(STATUS "glfw library found in ${libvar_glfw}")
endif()

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

link_libraries(${libvar_glfw})

aux_source_directory(. all_src)
add_executable(plot3d ${all_src})

